package iraunkortasuna;

import java.io.*;

public class Deserializazioa {
	
	public static void main (String [] args){
		PertsonenZerrenda ps;
		
		try {
			ObjectInputStream sar  = new ObjectInputStream(new FileInputStream("pertsonak.ser"));
			ps = (PertsonenZerrenda)sar.readObject();
			System.out.println(ps.toString());
			
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
		
}
